package com.syyo.admin.utils;

import java.util.Collection;

/**
 * @Auther: wangzhong
 * @Date: 2019/10/16 18:35
 * @Description:
 */
public class MyListUtils {

    /**
     * 校验集合是否为空
     *
     * @param list
     * @return
     */
    public static boolean isEmpty(Collection<?> list) {
        if (list != null && list.size() > 0) {
            return false;
        } else {
            return true;
        }
    }

    public static boolean isNotEmpty(Collection<?> list) {
        if (list != null && list.size() > 0) {
            return true;
        } else {
            return false;
        }
    }

}
